//
//  NumberFormatter.m
//  JRWD
//
//  Created by user on 16/2/20.
//  Copyright © 2016年 hejin. All rights reserved.
//

#import "NumberFormatter.h"

@implementation NumberFormatter

+(NSString *)formatterNumberToDecimal:(NSNumber *)number {
    
    //将数字按一定格式（NSNumberFormatterDecimalStyle 三位间隔）输出
    NSNumberFormatter *formatter = [[NSNumberFormatter alloc]init];
    
    formatter.numberStyle = NSNumberFormatterDecimalStyle;
    
    NSString *newAmount = [formatter stringFromNumber:number];
    
    return newAmount;
}
@end
